package com.home.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.home.dao.ZoneDao;
import com.home.model.Zone;
import com.home.service.ZoneService;
@Service("zoneService")
public class ZoneServiceImpl implements ZoneService{
	@Autowired
	private ZoneDao<Zone,Integer> zoneDao;
	
	public ZoneDao<Zone, Integer> getZoneDao() {
		return zoneDao;
	}

	public void setZoneDao(ZoneDao<Zone, Integer> zoneDao) {
		this.zoneDao = zoneDao;
	}

	public void delete(Zone zone) {
		this.getZoneDao().delete(zone.getId());
	}

	public List<Zone> getList() {
		return this.getZoneDao().getAll();
	}

	public void save(Zone zone) {
		this.getZoneDao().save(zone);
	}

	public Zone getZone(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

}
